//package com.dmgis.hndz.controller;
//
//
//import com.alibaba.fastjson.JSONObject;
//import com.dmgis.entity.DmMapPoint;
//import com.dmgis.hndz.common.result.HttpStatusEnum;
//import com.dmgis.hndz.common.result.ResponseResult;
//import com.dmgis.hndz.pojo.*;
//import com.dmgis.hndz.service.*;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiImplicitParam;
//import io.swagger.annotations.ApiImplicitParams;
//import io.swagger.annotations.ApiOperation;
//import org.checkerframework.checker.units.qual.A;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.*;
//import org.springframework.web.multipart.MultipartFile;
//
//import java.io.IOException;
//import java.text.ParseException;
//import java.util.List;
//import java.util.Map;
//
//@Api(tags = "应急响应一张图")
//@RestController
//@RequestMapping("/emergency")
//public class EmergencyController {
//    @Autowired
//    private Qxca01aService qxca01aService;
//    @Autowired
//    private Qxaa01aService qxaa01aService;
//    @Autowired
//    private Qxba01aService qxba01aService;
//    @Autowired
//    private Jcca16aService jcca16aService;
//    @Autowired
//    private Zhaa01aService zhaa01aService;
//    @Autowired
//    private EmergencyService emergencyService;
//
//    @ApiOperation(value = "缓冲区分析查询")
//    @PostMapping("/queryBuffer")
//    public ResponseResult queryBuffer(@RequestBody  DmMapPoint[] arr,String type) {
//        List<Point> list = qxca01aService.queryBuffer(arr,type);
//        return new ResponseResult(HttpStatusEnum.SUCCESS.getCode(), true, "查询成功", list);
//    }
//
//    @ApiOperation(value = "分页查询自动站雨量数据")
//    @PostMapping("/queryTrue")
//    @ResponseBody
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "currentPage", value = "当前页", required = true, defaultValue = "01", dataType = "Integer", paramType = "query"),
//            @ApiImplicitParam(name = "pageSize", value = "页面大小", required = true, defaultValue = "10", dataType = "Integer", paramType = "query"),
//            @ApiImplicitParam(name = "id", value = "站号", required = true, defaultValue = "", dataType = "String", paramType = "query"),
//            @ApiImplicitParam(name = "startTime", value = "开始时间", required = false, defaultValue = "2023-11-09 19:01:01.698", dataType = "String", paramType = "query"),
//            @ApiImplicitParam(name = "endTime", value = "结束时间", required = false, defaultValue = "2023-11-10 20:31:55.759", dataType = "String", paramType = "query"),
//            @ApiImplicitParam(name = "grade", value = "易发等级", required = false, defaultValue = "", dataType = "String", paramType = "query"),
//    })
//    public ResponseResult queryTrue(@RequestBody JSONObject jsonObject) {
//        Map<String,Object> map = qxaa01aService.queryTrue(jsonObject);
//        return new ResponseResult(HttpStatusEnum.SUCCESS.getCode(), true, "查询成功", map);
//    }
//
//    @ApiOperation(value = "分页查询城镇预报数据")
//    @PostMapping("/queryForecast")
//    @ResponseBody
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "currentPage", value = "当前页", required = true, defaultValue = "01", dataType = "Integer", paramType = "query"),
//            @ApiImplicitParam(name = "pageSize", value = "页面大小", required = true, defaultValue = "10", dataType = "Integer", paramType = "query"),
//            @ApiImplicitParam(name = "id", value = "站号", required = true, defaultValue = "", dataType = "String", paramType = "query"),
//            @ApiImplicitParam(name = "startTime", value = "开始时间", required = false, defaultValue = "2023-11-09 19:01:01.698", dataType = "String", paramType = "query"),
//            @ApiImplicitParam(name = "endTime", value = "结束时间", required = false, defaultValue = "2023-11-10 20:31:55.759", dataType = "String", paramType = "query"),
//    })
//    public ResponseResult queryForecast(@RequestBody JSONObject jsonObject) {
//        Map<String,Object> list = qxba01aService.queryForecast(jsonObject);
//        return new ResponseResult(HttpStatusEnum.SUCCESS.getCode(), true, "查询成功", list);
//    }
//
//    @ApiOperation(value = "分页查询普适化监测点预警数据")
//    @PostMapping("/queryNormals")
//    @ResponseBody
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "currentPage", value = "当前页", required = true, defaultValue = "01", dataType = "Integer", paramType = "query"),
//            @ApiImplicitParam(name = "pageSize", value = "页面大小", required = true, defaultValue = "10", dataType = "Integer", paramType = "query"),
//            @ApiImplicitParam(name = "id", value = "监测点编号", required = true, defaultValue = "", dataType = "String", paramType = "query"),
//            @ApiImplicitParam(name = "startTime", value = "开始时间", required = false, defaultValue = "2023-11-09 19:01:01.698", dataType = "String", paramType = "query"),
//            @ApiImplicitParam(name = "endTime", value = "结束时间", required = false, defaultValue = "2023-11-10 20:31:55.759", dataType = "String", paramType = "query"),
//            @ApiImplicitParam(name = "waringLevel", value = "预警等级(1：红，2：橙、3：黄、4：蓝)", required = false, defaultValue = "", dataType = "String", paramType = "query"),
//    })
//    public ResponseResult queryNormals(@RequestBody JSONObject jsonObject) {
//        Map<String,Object> list = jcca16aService.queryNormal(jsonObject);
//        return new ResponseResult(HttpStatusEnum.SUCCESS.getCode(), true, "查询成功", list);
//    }
//
//    @ApiOperation(value = "分页查询隐患点预警数据")
//    @PostMapping("/queryNormal")
//    @ResponseBody
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "currentPage", value = "当前页", required = true, defaultValue = "01", dataType = "Integer", paramType = "query"),
//            @ApiImplicitParam(name = "pageSize", value = "页面大小", required = true, defaultValue = "10", dataType = "Integer", paramType = "query"),
//            @ApiImplicitParam(name = "id", value = "隐患点编号", required = true, defaultValue = "", dataType = "String", paramType = "query"),
//            @ApiImplicitParam(name = "startTime", value = "开始时间", required = false, defaultValue = "2023-11-09 19:01:01.698", dataType = "String", paramType = "query"),
//            @ApiImplicitParam(name = "endTime", value = "结束时间", required = false, defaultValue = "2023-11-10 20:31:55.759", dataType = "String", paramType = "query"),
//            @ApiImplicitParam(name = "waringLevel", value = "预警等级(1：红，2：橙、3：黄、4：蓝)", required = false, defaultValue = "", dataType = "String", paramType = "query"),
//    })
//    public ResponseResult queryHidden(@RequestBody JSONObject jsonObject) {
//        Map<String,Object> list = zhaa01aService.queryHidden(jsonObject);
//        return new ResponseResult(HttpStatusEnum.SUCCESS.getCode(), true, "查询成功", list);
//    }
//
//    @ApiOperation(value = "生成文档")
//    @PostMapping("/createFile")
//    @ResponseBody
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "point", value = "" +
//                    "", required = true, defaultValue = "01", dataType = "String", paramType = "query"),
//            @ApiImplicitParam(name = "time", value = "时间", required = true, defaultValue = "10", dataType = "String", paramType = "query"),
//    })
//    public ResponseResult createFile(Integer issueNum,
//                                     String userName,
//                                     String yjType,
//                                     String sXType,
//                                     String date,
//                                     String timeChar,
//                                     Integer nTimes,
//                                     String colorAndPos,
//                                     String posStr,
//                                     MultipartFile[] images,
//                                     String layerName,
//                                     String dlData,
//                                     int type) throws IOException, ParseException {
//        Map<String,Object> list = emergencyService.createFile( issueNum, userName, yjType, sXType, date, timeChar, nTimes, colorAndPos,
//                posStr, images, layerName, dlData,type);
//        return new ResponseResult(HttpStatusEnum.SUCCESS.getCode(), true, "查询成功", list);
//    }
//
//    @ApiOperation(value = "图层更新")
//    @PostMapping("/UpdateMap")
//    @ResponseBody
//    public ResponseResult UpdateMap(String mapType) {
//       List<Zhyhd> zhyhdList = emergencyService.UpdateMap(mapType);
//        return new ResponseResult(HttpStatusEnum.SUCCESS.getCode(), true, "查询成功", zhyhdList);
//    }
//
//
//
//}
